//
//  RechargeViewController.m
//  cityStar
//
//  Created by Hancong on 15/3/29.
//  Copyright (c) 2015年 tiny. All rights reserved.
//

#import "RechargeViewController.h"

@interface RechargeViewController ()

@property (nonatomic, weak) IBOutlet UIWebView *webView;
@property (nonatomic, strong) NSString *rechangeUrl;

@end

@implementation RechargeViewController

-(id)initWithRechangeUrl:(NSString *)rechangeUrl
{
    self = [super init];
    if (self) {
        self.rechangeUrl = rechangeUrl;
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [self addBackButton];
    // Do any additional setup after loading the view from its nib.
    [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:self.rechangeUrl]]];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
